package com.gemantic.task.dao.constant;


/**
 * @author xiedi
 * @date 2022/09/15
 **/
public enum TaskStatus {
    OPEN("open"),
    PENDING("pending"),
    RUNNING("running"),
    ERROR("error"),
    TERMINATED("terminated"),
    CLOSE("close");

    private String code;

    private TaskStatus(String status) {
        this.code = status;
    }

    public String getCode() {
        return this.code;
    }

    public boolean isEquals(String status) {
        return this.code.equals(status);
    }
}
